package edu.gtcfla.km.repositories;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import java.util.Set;

import org.springframework.data.repository.Repository;

import edu.gtcfla.km.Category;

public interface CategoryRepo<T extends Category, ID extends Serializable> extends Repository<T, ID> {

	void save(T entity);
	
	void update(T entity);
	
	void deleteFully(T entity);
	
	void updateAll(Collection<T> entities);	
	
	T findOne(ID primaryKey);
	
	T findParent( ID primaryKey );	

	Map<String , T> findAllMap();
	
	Map<String , T> findAllByIds(Set<String> ids);

	
}
